<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page import="java.util.List"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.Set"%>
<%@page import="com.taobao.askwho.vo.PersonalPageRecordVo"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="快速找到解决问题的人或资料的网站">
<meta name="author" content="zhongting.zy">
<title>关于问谁</title>
<!-- Le styles -->
<link href="<%= request.getContextPath()%>/assets/css/bootstrap.css"
	rel="stylesheet">
<style type="text/css">
body {
	padding-top: 60px;
	padding-bottom: 40px;
}
</style>
<link
	href="<%=request.getContextPath()%>/assets/css/bootstrap-responsive.css"
	rel="stylesheet">

<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

<!-- Le fav and touch icons -->
<link rel="shortcut icon"
	href="<%= request.getContextPath()%>/assets/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144"
	href="<%=request.getContextPath()%>/assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114"
	href="<%=request.getContextPath()%>/assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72"
	href="<%=request.getContextPath()%>/assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed"
	href="<%=request.getContextPath()%>/assets/ico/apple-touch-icon-57-precomposed.png">
</head>
<body>
	<%@include file="/jsp/header.jsp"%>
	<div class="container">
		<div class="inner">
			<h1>问谁, 帮你快速找到解决问题的网站</h1>
			<br />
			<h3>
			写在前面，还记得...
			</h3>
			<p>
			还记得自己刚入职时，面对各种资料链接的头大吗？<br>
			还记得自己突然忘记几个月前有工作交往的某个人的名字吗？<br>
			还记得自己问过或被问过多少次打印机IP多少？网页邮箱地址多少？Maven库地址多少？<br>
			<br>
			......
			</p>
			<h3>
			如果遇到上面的情况，那么来问谁吧！
			</h3>
			<p>
				问谁是一个告诉你如何去解决问题的网站，这里没有问题的答案，但是可以告诉你去哪里找答案、去找谁可以解决你的问题。<br />你可以把它理解为一个个人便签库或写满答案的公告板。
			</p>
			<p>在问谁，你也可以快速收藏别人的分享。</p>
			<p>在问谁，你可以为自己搜集的资料链接、咨询过的人加特定的标签，以备未来使用或分享给他人。</p>
			<h3>
			问谁数据的来源：
			</h3>
			<p>程序定时收集阿里内部一些常见系统的链接</p>
			<p>从workflow中取到常用接口人信息，从轩辕剑，Aita和其他一些人员信息系统中拉去数据</p>
			<p>大家的分享</p>
			<h3>
				特别感谢：烟客、无名、云雅给予的指导和帮助。
			</h3>			
			<H3 style="color: red;">"外事问谷歌，内事问百度，阿里工作事，爱问谁&nbsp;问谁？"</H3>
		</div>
		<hr>
		<%@include file="/jsp/footer.jsp"%>
	</div>
	<!--/.fluid-container-->

	<!-- Le javascript
    ================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="<%=request.getContextPath()%>/assets/js/jquery.js"></script>
	<script
		src="<%=request.getContextPath()%>/assets/js/bootstrap-transition.js"></script>
	<script
		src="<%=request.getContextPath()%>/assets/js/bootstrap-alert.js"></script>
	<script
		src="<%=request.getContextPath()%>/assets/js/bootstrap-modal.js"></script>
	<script
		src="<%=request.getContextPath()%>/assets/js/bootstrap-dropdown.js"></script>
	<script
		src="<%=request.getContextPath()%>/assets/js/bootstrap-scrollspy.js"></script>
	<script src="<%=request.getContextPath()%>/assets/js/bootstrap-tab.js"></script>
	<script
		src="<%=request.getContextPath()%>/assets/js/bootstrap-tooltip.js"></script>
	<script
		src="<%=request.getContextPath()%>/assets/js/bootstrap-popover.js"></script>
	<script
		src="<%=request.getContextPath()%>/assets/js/bootstrap-button.js"></script>
	<script
		src="<%=request.getContextPath()%>/assets/js/bootstrap-collapse.js"></script>
	<script
		src="<%=request.getContextPath()%>/assets/js/bootstrap-carousel.js"></script>
	<script
		src="<%=request.getContextPath()%>/assets/js/bootstrap-typeahead.js"></script>
	<script>
		$(function() {
			//$('#myTab a[href="#url"]').tab('show');
			
			$('#myTab a').click(function (e) {
				  e.preventDefault();
				  var nodeValue = $(this)[0].attributes[0].nodeValue;
				  if(nodeValue == "#url") {
					  $('#curentType').attr("value", "url");
				  } else {
					  $('#curentType').attr("value", "person");
				  }
				  $(this).tab('show');
			})
			
			//show,shown,hide,hidden  四个状态
			$('#myModal').on('show', function () {
				//理想情况进来时都是显示添加URL界面，目前暂未实现
			})
			$('#myModal').on('hidden', function () {
				$('#urlform')[0].reset();
				$('#personform')[0].reset();
			})
			//点击添加窗口的添加表单
			$("#btnSaveNew").click(function() {
				
				var type = $("#urlContent").val();
				var curentType = $("#curentType").val();
				if(curentType == "url") {
					$.ajax({
						  url: '<%=request.getContextPath()%>/urlopt.do?method=addNewUrl',
						  dataType: 'json',
						  type: "post",
						  data: {
							  urlContent: $("#urlContent").val(),
							  isPublic: $("#isPublicUrl").val(),
							  tagString: $("#tagStringUrl").val(),
							  userUuid: $("#userUuid").val()
						  },
						  success: function(data) {
							if(data.success) {
								//alert("保存成功");
								$('#myModal').modal('hide');
								window.location.reload();
							} else {
								//alert(data.msg);
								alert("保存失败");
							}
						  }
						});					
				} else {	//person
					$.ajax({
						  url: '<%=request.getContextPath()%>/personopt.do?method=addNewPerson',
						  dataType: 'json',
						  type: "post",
						  data: {
							  personName: $("#personName").val(),
							  wangwang: $("#wangwang").val(),
							  tagString: $("#tagStringPerson").val(),
							  isPublic: $("#isPublicPerson").val(),
							  userUuid: $("#userUuid").val()
						  },
						  success: function(data) {
							if(data.success) {
								//alert("保存成功");
								$('#myModal').modal('hide');
								window.location.reload();
							} else {
								//alert(data.msg);
								alert("保存失败");
							}
						  }
						});					
				}
				return true;
			});	
		})
		function deleteByUuids(ids,type) {
			$.ajax({
				  url: '<%=request.getContextPath()%>/tagopt.do?method=deleteByTagUuids',
				  dataType: 'json',
				  type: "post",
				  data: {
					  tagUuids: ids,
					  type: type
				  },
				  success: function(data) {
					if(data.success) {
						//alert("删除成功");
						window.location.reload();
					} else {
						alert(data.msg);
						//alert("保存失败");
					}
				  }
				});				
		}
	</script>
</body>
</html>
